#import <Cocoa/Cocoa.h>

@interface RNDetailHeader : NSObject <NSCopying> {
    NSUInteger displayIndex_;
    id rootObject_;
    NSString *titleTemplate_;
    BOOL showsTitle_;
    NSString *keyPath_;
    NSPredicate *predicate_;
    NSArrayController *primaryController_;
    NSArrayController *intermediateController_;

    BOOL showsChildren_;
    BOOL expandsChildren_;
    CGFloat headerHeight_;
}
@property (retain) id rootObject;
@property (copy) NSString *keyPath;
@property (assign) NSUInteger displayIndex;
@property (copy) NSString *titleTemplate;
@property (assign) BOOL showsTitle; // NEEDED?
@property (retain) NSPredicate *predicate;
@property (retain) NSArrayController *primaryController;
@property (retain) NSArrayController *intermediateController;

@property (assign) BOOL showsChildren;
@property (assign) BOOL expandsChildren;
@property (assign) CGFloat headerHeight;

+(NSArray *)arrayOfHeadersWithRootObject:(id)rootObject filteredWithObject:(id)filterObject inManagedObjectContext:(NSManagedObjectContext *)moc;
-(id)initWithRootObject:(id)rootObject;
-(NSDictionary *)objectDictionary;
-(NSUInteger)childCount;
-(NSString *)title;
-(NSArray *)children;

@end
